﻿using System;
using System.Collections.Generic;
using System.Globalization;
using Avalonia.Controls;
using Avalonia.Data.Converters;
using Avalonia.Media;

namespace AvaloniaApplication1.Converters
{
    public class StringConverter : IMultiValueConverter
    {
       
        public object Convert(IList<object> values, Type targetType, object parameter, CultureInfo culture)
        {
            return "";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return "";
        }

        private bool IsTextTrimmed(TextBlock textBlock)
        {
            return false;
            //textBlock
            //formattedText.

            //formattedText.MaxTextWidth = textBlock.ActualWidth;

            //bool isTrimmed = formattedText.Height > textBlock.ActualHeight ||
            //                 formattedText.Width > textBlock.MaxTextWidth;
            //return isTrimmed;
        }
    }
}
